<template>
  <view class="x-wrapper"> </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  onLoad() {
    if (uni.getStorageSync("token")) {
      this.$u.route({
        url: "pages/business/home",
        type: "tab",
      });
    } else {
      this.$u.route({
        url: "pages/login/login",
        type: "reLaunch",
      });
    }
  },
  methods: {},
};
</script>
 
<style lang="scss" scoped></style>
